/*
 * color.cpp
 *
 *  Created on: 13 Nis 2012
 *      Author: hframe
 */

#include "color.h"

startnamespace(androidplus )
startnamespace(drawing)

color::color(t_ufloat r,t_ufloat g,t_ufloat b,t_ufloat a):red(r),green(g),blue(b),alpha(a) {

}

color::color(const color &c):red(c.red),green(c.green),blue(c.blue),alpha(c.alpha){

}
color& color::operator=(const color &c){
 red=c.red;
 green=c.green;
 blue=c.blue;
 alpha=c.alpha;
 return *this;
}

color::~color() {

}

t_string color::to_string(){
	return  androidplus:: to_string(red)+","+androidplus:: to_string(green)+","+androidplus::to_string(blue)+","+androidplus::to_string(alpha);
}

endnamespace(drawing)
endnamespace(androidplus)
